package xiaohu.day0.HJ4;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String str = in.nextLine();
            int index = 0;
            while (index < str.length()) {
                if (index + 8 < str.length()) {
                    System.out.println(str.substring(index, index + 8));
                    index+=8;
                } else {
                    String sb="00000000";
                    while (index < str.length()) {
                        sb=sb.replaceFirst("0", str.charAt(index)+"");
                        index++;
                    }
                    System.out.println(sb);
                }
            }
        }
    }
}
